import request from '@/util/request'

export function listProduct(data) {
  return request({
    url: '/iot/product/list',
    method: 'post',
    data
  })
}

export function listProductIcon(data) {
  return request({
    url: '/iot/product/icon/list',
    method: 'post',
    data
  })
}

export function getProduct(data) {
  return request({
    url: '/iot/product/get',
    method: 'post',
    data
  })
}

export function exportProduct(data) {
  return request({
    url: '/iot/product/export',
    method: 'post',
    data
  })
}

export function importProduct(data) {
  return request({
    url: '/iot/product/import',
    method: 'post',
    data
  })
}

export function insertProduct(data) {
  return request({
    url: '/iot/product/insert',
    method: 'post',
    data
  })
}

export function updateProduct(data) {
  return request({
    url: '/iot/product/update',
    method: 'post',
    data
  })
}

export function deleteProduct(data) {
  return request({
    url: '/iot/product/delete',
    method: 'post',
    data
  })
}

export function pageGetProduct(data) {
  return request({
    url: '/iot/product/pageGet',
    method: 'post',
    data
  })
}

export function deleteProductList(data) {
  return request({
    url: '/iot/product/deleteList',
    method: 'post',
    data
  })
}

